package hero_info

import (
	"go_server/game_server/protocol/pb"
	"go_server/game_server/util"
	"go_server/zinx/ziface"
	"go_server/zinx/zlog"
	"go_server/zinx/znet"
)

type Router_GetHeros struct {
	znet.BaseRouter
}

func (*Router_GetHeros) Handle(request ziface.IRequest) {
	conn := request.GetConnection()
	msg := &pb.GetHerosC2S{}
	if !util.PBParseRet(request, msg) {
		return
	}
	roleId, _ := conn.GetProperty("roleId")
	zlog.Debug("Router_GetHeros")
	Hero_info_serviceObj.S2C_GetHeros(conn, roleId.(int64))
}
